package cn.com.connext.scrm.service.dto;

import java.io.Serializable;

/**
 * 用于对外部接口返回
 * 其中正确返回值:
 * {state:1, batchNo:批次号, num:批次条数}
 * 错误返回值:
 * {state:2, batchNo:批次号, num:批次条数}
 */
public class AddProductResult implements Serializable {
    private static final long serialVersionUID = -3644950655568598241L;

    public static final String SUCCESS = "1";
    public static final String ERROR = "2";

    /**
     * 标识,接收成功：1 接收失败：2
     */
    private String code;
    /**
     * 条数
     */
    private String batchNo;
    /**
     * 条数
     */
    private int num;


    public AddProductResult() {
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getBatchNo() {
        return batchNo;
    }

    public void setBatchNo(String batchNo) {
        this.batchNo = batchNo;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    @Override
    public String toString() {
        return "JsonResult [code=" + code + ", batchNo=" + batchNo + ", num=" + num + "]";
    }

}
